package cho114366.basic;

import java.util.Scanner;

public class J03_26_01 {
	//결혼 여부와 연봉에 따라 세금 계산
	//결혼 여부 : 기혼, 미혼
	public static void main(String[] args) {
		Scanner sc = null;
		int pay;
		String marry;
		int tax1;
		int tax2;
		int tax4;
		
		
		
		sc = new Scanner(System.in);
		
		System.out.println("결혼 여부를 입력하세요(O or X) : ");
	    marry = sc.next();
		System.out.println("연봉을 입력하세요 : ");
	    pay = sc.nextInt();
	    
	    tax1 = pay/100*10;
		tax2 = pay/100*25;
		tax4 = pay/100*35;
	    
	    
	    sc.close();
		
	   switch (marry) {
	   	case "O":
	   		if(pay<6000)System.out.println(tax2);
	   		
	   	case "X": 
	   		if(pay<3000)System.out.println(tax1);
		break;

	default: System.out.println(tax4);
		break; 
	}
		if(marry.equals("X")&&pay<3000){System.out.println(tax1);}
		else if(marry.equals("X")&&pay>=3000){System.out.println(tax2);}
		else if(marry.equals("O")&&pay<6000){System.out.println(tax2);}
		else{System.out.println(tax4);}
		

	}

}
